#include "Serializable.h"
#include "UnFormattedObjectOutputStream.h"
#include "UnFormattedObjectInputStream.h"

namespace Entities {

istream & operator>>(istream & is, Serializable & obj){
	UnFormattedObjectInputStream tmp(is);
	obj.load(tmp);
	return tmp.getStream();
}

ostream & operator<<(ostream & os, const Serializable & obj){
	UnFormattedObjectOutputStream tmp(os);
	obj.save(tmp);
    return tmp.getStream();
}

}